package cn.edu.just.firstjavaapp.l10;

public class DrawApp {
    public static void main(String[] args) {
        Rectangle[] rects = new Rectangle[100];
        int count =0;

        Circle[] circles = new Circle[100];
        int countCirle = 0;

        rects[count++] = new Rectangle(3,6,18,39);
        rects[count++] = new Rectangle(4,8,8,56);

        circles[countCirle++] = new Circle();

        rects[count++] = new Rectangle(32,16,83,15);
        rects[count++] = new Rectangle(32,16,83,15);
        rects[count++] = new Rectangle(100,200,48,92);
        rects[count++] = new Rectangle(76,54,20,78);
        rects[count++] = new Rectangle(23,67,42,76);

        circles[countCirle++] = new Circle(4,5,100);
        circles[countCirle++] = new Circle(20,30,80);


        for(int i=0;i<count;i++){
            rects[i].draw();
        }
        for(int i=0;i<countCirle;i++){
            circles[i].draw();
        }

    }
}
